package com.mycode.model;

import com.mycode.util.DateUtil;

import java.util.Date;

/**
 * @author shkstart
 * @create 2021-01-22 12:28
 */
public class Account {
    private int bankNO;
    private String name;

    private double money;
    private String password;
    private Date date;

    public Account(String name, double money, String password) {
        this.name = name;
        this.bankNO = bankNO;
        this.money = money;
        this.password = password;
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBankNO() {
        return bankNO;
    }

    public void setBankNO(int bankNO) {
        this.bankNO = bankNO;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "姓名='" + name + ", money=" + money;
    }

    public String info() {
        return this.bankNO + "/" + this.name + "/" + this.money + "/" + this.password + "/" + DateUtil.formatDate(this.date);
    }
}
